package com.lzy.crm.service.impl;

import java.util.List;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.lzy.crm.base.mybatis.BaseMapper;
import com.lzy.crm.base.page.PageQuery;
import com.lzy.crm.base.service.BaseServiceImpl;
import com.lzy.crm.dao.AdviceMessageMapper;
import com.lzy.crm.dao.criteria.AdviceMessageCriteria;
import com.lzy.crm.domain.AdviceMessage;
import com.lzy.crm.service.AdviceMessageService;

/**
 * 
 * @author achenshengping
 *
 */
@Service("adviceMessageService")
public class AdviceMessageServiceImpl 
	extends BaseServiceImpl<AdviceMessage, AdviceMessageCriteria> implements AdviceMessageService {

	@Resource
	private AdviceMessageMapper adviceMessageMapper;
	
	@Override
	public BaseMapper<AdviceMessage, AdviceMessageCriteria> getBaseMapper() {
		// TODO Auto-generated method stub
		return adviceMessageMapper;
	}

	/**
	 * 查询用户投诉建议信息
	 * @param userId
	 * @param pageQuery
	 * @return
	 */
	public List<AdviceMessage> getAdviceMessageListByUserId(Integer userId, PageQuery pageQuery){
		return adviceMessageMapper.getAdviceMessageListByUserId(userId, pageQuery);
	}
	
	
}
